package com.t.bricks.bussiness.db.entity.sellstatis;

import io.swagger.annotations.ApiModelProperty;

import com.t.bricks.bussiness.db.entity.sellstatis.base.SellStatisBase;

/**
 * 销售统计'SellStatis'表扩展实体类
 * 注意:可根据需要创建不同的多个扩展实体类,而不是把所有的扩展属性都集中到一个类中
 * @author HuangXinBian
 */
public class SellStatis extends SellStatisBase {
	
	private static final long serialVersionUID = -1L;// 使用rmi时需修改
	
	/**
	 * 粒度(枚举,1:日;2:月;3:年)
	 */
	@ApiModelProperty(value="粒度(枚举,1:日;2:月;3:年)", example="")
	private String sGrainText;

	/**
	 * 取 粒度(枚举,1:日;2:月;3:年)
	 * @return GrainText 粒度(枚举,1:日;2:月;3:年)
	 */
	public String getsGrainText() {
		return this.sGrainText;
	}

	/**
	 * 设置 粒度(枚举,1:日;2:月;3:年)
	 * @param sGrainText 粒度(枚举,1:日;2:月;3:年)
	 */
	public void setsGrainText(String sGrainText) {
		this.sGrainText = sGrainText;
	}

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return SellStatis
	 */
	public static SellStatis copy(SellStatis source) {
		if (null == source) {
			return null;
		}
		
		SellStatis target = new SellStatis();
		target.setsId(source.getsId());
		target.setiYear(source.getiYear());
		target.setiMonth(source.getiMonth());
		target.setiDay(source.getiDay());
		target.setdTime(source.getdTime());
		target.setiGrain(source.getiGrain());
		target.setmMoney(source.getmMoney());
		target.setmMoneyPay(source.getmMoneyPay());
		target.setmCouponPay(source.getmCouponPay());
		target.setiTallyPay(source.getiTallyPay());
		target.setiTallyLargess(source.getiTallyLargess());
		target.setmFreight(source.getmFreight());
		target.setsGrainText(source.getsGrainText());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return SellStatis
	 */
	@Override
	public SellStatis clone() {
		return copy(this);
	}
	
}
